﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>splitPage</title>

    <!-- WinJS references -->
    <link href="//Microsoft.WinJS.1.0/css/ui-dark.css" rel="stylesheet" />
    <script src="//Microsoft.WinJS.1.0/js/base.js"></script>
    <script src="//Microsoft.WinJS.1.0/js/ui.js"></script>
    <script src="/js/jquery-1.8.0.min.js"></script>

    <link href="/css/default.css" rel="stylesheet" />
    <link href="/pages/split/split.css" rel="stylesheet" />
    <link href="/pages/fullscreen/fullscreen.css" rel="stylesheet" />
    <script src="/js/photoDB.js"></script>
    <script src="/js/data.js"></script>
    <script src="/pages/split/split.js"></script>
    

</head>
<body class="imgBody" onmousewheel="navigateWithMouse();">
    <div class="imgtemplate" data-win-control="WinJS.Binding.Template">
        <div class="img-viewer ManipulationContainer zoomElement">
            <div class="img-section">
                <p class="img-cell">
			        <input type=image class="img-source" src="#" data-win-bind="src: url; alt: title"/>
                </p>
            </div>             
		    <header class="img-overlay itemheader" role="banner">
                <button class="win-backbutton" aria-label="Back" type="button" onclick="document.querySelector('.full-flip').style.visibility = 'hidden'; document.querySelector('.splitpage').style.visibility = 'visible';"></button>
                <h2 class="img-description" data-win-bind="textContent: caption"></h2>                
            </header>
        </div>
    </div>

    <!-- The content that will be loaded and displayed. -->
    <div class="fullpage fragment">
        <div class="full-image" aria-atomic="true" aria-label="Item detail column" aria-live="assertive">
            <div class="full-flip" data-win-control="WinJS.UI.FlipView" style="width: 100%; height: 100%;"/>
        </div>
    </div>
        
    <!-- This template is used to display each item in the ListView declared below. -->
    <div class="itemtemplate" data-win-control="WinJS.Binding.Template">
        <div class="item" style="height: 200px">
            <img class="item-image" src="#" style="height: 200px" data-win-bind="src: backgroundImage; alt: title"/>
            <div class="item-overlay">
                <h2 class="item-description" data-win-bind="textContent: caption"></h2>                
            </div>
        </div>
    </div>
    
    <!-- The content that will be loaded and displayed. -->
    <div class="splitpage fragment">
        <header class="itemheader" aria-label="Header content" role="banner">
            <button class="win-backbutton" aria-label="Back"  type="button" onclick="WinJS.Navigation.back(1);"></button>
            <h1 class="titlearea win-type-ellipsis">
                <span class="pagetitle">Title</span>
            </h1>
        </header>
        <div class="imgWall">
            <div class="progress" style="display:inline">
                <progress class="win-ring win-large loading-ring"/>
            </div>
        </div>
    </div>
</body>
</html>
